package com.ty.tymusic.exception;

import com.ty.tymusic.enums.ExceptionType;

public class BizException extends RuntimeException{
    private final Integer code;

    public BizException(ExceptionType exceptionType){
        super(exceptionType.getMessage());
        this.code=exceptionType.getCode();
    }

    public Integer getCode() {
        return code;
    }
}
